<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ page import="cn.maszy.action.systemsetting.AdminAction"%>
<%
if(session.getAttribute("UserSession")==null){
	   out.print("<script>");
	   out.print("window.location.href='../login.jsp'");
	   out.print("");
	   out.print("</script>");
	   return;
	  }
//获取当前日期
java.text.SimpleDateFormat formatter = new java.text.SimpleDateFormat("yyyy-MM-dd"); 
java.util.Date currentTime = new java.util.Date();//得到当前系统时间 
String str_date1 = formatter.format(currentTime); //将日期时间格式化 
String str_date2 = currentTime.toString(); //将Date型日期时间转换成字符串形式 
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>马鞍山市志业软件管理系统</title>
<link rel="icon" href="favicon.ico">
<link href="dwz/themes/default/style.css" rel="stylesheet"
	type="text/css" media="screen" />
<link href="dwz/themes/css/core.css" rel="stylesheet" type="text/css"
	media="screen" />
<link href="dwz/themes/css/print.css" rel="stylesheet" type="text/css"
	media="print" />
<link href="dwz/uploadify/css/uploadify.css" rel="stylesheet"
	type="text/css" media="screen" />
<!--[if IE]>
            <link href="dwz/themes/css/ieHack.css" rel="stylesheet" type="text/css" media="screen"/>
        <![endif]-->
<script src="dwz/js/speedup.js" type="text/javascript">
        </script>
<script src="dwz/js/jquery-1.7.1.min.js" type="text/javascript">
        </script>
<script src="dwz/js/jquery.cookie.js" type="text/javascript">
        </script>
<script src="dwz/js/jquery.validate.js" type="text/javascript">
        </script>
<script src="dwz/js/jquery.bgiframe.js" type="text/javascript">
        </script>
<script src="dwz/xheditor/xheditor-1.1.12-zh-cn.min.js"
	type="text/javascript">
        </script>
<script src="dwz/uploadify/scripts/swfobject.js" type="text/javascript">
        </script>
<script src="dwz/uploadify/scripts/jquery.uploadify.v2.1.0.js"
	type="text/javascript">
        </script>
<script src="dwz/js/dwz.min.js" type="text/javascript"></script>
<script src="dwz/js/dwz.regional.zh.js" type="text/javascript">
        </script>
        
<script type="text/javascript">
            $(function(){
                DWZ.init("dwz.frag.xml", {
                    loginUrl: "login_dialog.html",
                    loginTitle: "登录", // 弹出登录对话框
                    //		loginUrl:"login.html",	// 跳到登录页面
                    statusCode: {
                        ok: 200,
                        error: 300,
                        timeout: 301
                    }, //【可选】
                    pageInfo: {
                        pageNum: "pageNum",
                        numPerPage: "numPerPage",
                        orderField: "orderField",
                        orderDirection: "orderDirection"
                    }, //【可选】
                    debug: false, // 调试模式 【true|false】
                    callback: function(){
                        initEnv();
                        $("#themeList").theme({
                            themeBase: "themes"
                        }); // themeBase 相对于index页面的主题base路径
                    }
                });
            });
            var myDate = new Date();
         var today = myDate.getFullYear()+"-"+(myDate.getMonth()+1)+"-"+myDate.getDate();
      </script>
</head>
<body scroll="no">
<div id="layout">
  <div id="header">
    <div class="headerNav"> <a class="logo" href="index.jsp">LOGO</a>
      <ul class="nav">
        <li><b> <script type="text/javascript"> var d = new Date(); var arr_week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");document.write(d.getFullYear()+"年"+(d.getMonth()+1)+"月"+d.getDate()+"日   "+arr_week[d.getDay()]);</script> 
          </b></li>
        <li><b>用户：${user.realName}</b></li>
        <li><b>IP：<%=request.getLocalAddr()%> </b></li>
        <li><a href="LoginOut.action">退出</a></li>
      </ul>
    </div>
    <!-- navMenu --> 
  </div>
  <div id="leftside">
    <div id="sidebar_s">
      <div class="collapse">
        <div class="toggleCollapse">
          <div></div>
        </div>
      </div>
    </div>
    <div id="sidebar">
      <div class="toggleCollapse">
        <h2>主菜单</h2>
        <div>收缩</div>
      </div>
      <div class="accordion" fillSpace="sidebar">
        <div class="accordionHeader">
          <h2> <span class="zyIcons01">Folder</span>我的工作台 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <li><a href="javascript:;">我的任务</a>
              <ul>
                <li><a href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.accusedPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0" target="navTab" rel="TaskManageLists">指派我的任务</a> </li>
                <li><a href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.sentPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0" target="navTab" rel="TaskManageLists">我指派的任务</a> </li>
              </ul>
            </li>
            <li><a href="systemsetting/MyWorkLogList?flag=2&strattime=<%=str_date1 %>&endtime=<%=str_date1 %>&b_T_Sys_OperatingLogs.operatingName=${user.realName}" target="navTab" rel="MyWorkLogList">工作日志</a></li>
            <li><a href="investment/StaffInDetail" target="navTab" rel="StaffInformationDetail">个人资料</a></li>
          </ul>
        </div>
        <div class="accordionHeader">
          <h2> <span class="zyIcons02">Folder</span>人事管理 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <li><a href="investment/StaffInformationList?b_T_Ufp_Staffinformation.status=在职" target="navTab" rel="StaffInformationList">员工信息</a></li>
            <li><a href="investment/DepartmentList" target="navTab" rel="DepartmentList">部门管理</a></li>
            <li><a href="investment/LeaveList" target="navTab" rel="LeaveList">请假条</a></li>
            <li><a href="investment/WorkList" target="navTab" rel="WorkList">考勤</a></li>
            <li><a href="investment/StatisticsList" target="navTab" rel="StatisticsList">考勤统计</a></li>
          </ul>
        </div>
        <div class="accordionHeader">
          <h2> <span class="zyIcons03">Folder</span>财务管理 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <li><a href="financialManagement/FinancialList?flag=zc" target="navTab" rel="FinancialList">财务支出</a></li>
            <li><a href="financialManagement/FinancialList1?flag=sr" target="navTab" rel="FinancialList">财务收入</a></li>
            <li><a href="financialManagement/FinancialStatistics" target="navTab" rel="FinancialStatistics">财务统计</a></li>
            <li><a href="contract/ContractList" target="navTab" rel="ContractList">合同管理</a> </li>
          </ul>
        </div>
        <div class="accordionHeader">
          <h2> <span class="zyIcons04">Folder</span>项目管理 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <li><a href="projectmanagement/ProjectmanagementList?b_T_Flow_ProjectManagement.status=0" target="navTab" rel="ProjectmanagementList">项目管理</a>
              <ul>
                <li><a href="projectmanagement/ProjectmanagementList?b_T_Flow_ProjectManagement.status=0" target="navTab" rel="ProjectmanagementList">未关闭的项目</a> </li>
                <li><a href="projectmanagement/ProjectmanagementList?b_T_Flow_ProjectManagement.status=1" target="navTab" rel="ProjectmanagementList">已关闭的项目</a> </li>
              </ul>
            </li>
            <li><a href="projectmanagement/TaskManageList?b_T_Ufp_TaskManager.taskSpeed=0" target="navTab" rel="TaskManageList">任务管理</a>
              <ul>
                <li><a href="projectmanagement/TaskManageList?b_T_Ufp_TaskManager.taskSpeed=0" target="navTab" rel="TaskManageList">未完成的任务</a> </li>
                <li><a href="projectmanagement/TaskManageList?b_T_Ufp_TaskManager.taskSpeed=1" target="navTab" rel="TaskManageList">已完成的任务</a> </li>
              </ul>
            </li>
            <!--  <li> <a href="projectmanagement/fileTypeList?moduleName=project" target="navTab" rel="fileList">附件管理</a></li>  -->
            <li><a href="projectmanagement/StatusList" target="navTab" rel="StatusList">状态维护</a></li>
            <li><a href="projectmanagement/fileTypeListt?moduleName=project" target="navTab" rel="fileTypeList">附件类型维护</a></li>
            <li><a href="systemsetting/MyWorkLogList?flag=8&strattime=<%=str_date1%>&endtime=<%=str_date1%>" target="navTab" rel="MyWorkLogList">工作日志</a></li>
          </ul>
        </div>
        <div class="accordionHeader">
          <h2> <span class="zyIcons05">Folder</span>销售管理 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <li><a href="costomer/CostomerList" target="navTab" rel="CostomerList">客户管理</a> </li>
            <li><a href="costomer/SellclueList" target="navTab" rel="SellclueList">商机管理</a> </li>
            <li><a href="costomer/MaintainList" target="navTab" rel="MaintainList">沟通方式管理</a> </li>
          </ul>
        </div>
        <div class="accordionHeader">
          <h2> <span class="zyIcons06">Folder</span>系统设置 </h2>
        </div>
        <div class="accordionContent">
          <ul class="tree treeFolder">
            <!--  <li><a href="systemsetting/adminDetail" target="navTab" rel="adminDetail">添加管理员</a></li>-->
            <li><a href="systemsetting/adminList" target="navTab" rel="adminList">管理员设置</a></li>
            <!--  <li> <a href="systemsetting/RoleDetail" target="navTab" rel="RoleDetail">添加角色</a> </li>-->
            <li><a href="systemsetting/RoleList" target="navTab" rel="RoleList">角色规则设置</a></li>
            <!-- <li> <a href="systemsetting/ModuleDetail" target="navTab" rel="ModuleDetail">添加模块</a></li> -->
            <li><a href="systemsetting/ModuleList" target="navTab" rel="ModuleList">模块设置</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <div id="container">
    <div id="navTab" class="tabsPage">
      <div class="tabsPageHeader">
        <div class="tabsPageHeaderContent"> 
          <!-- 显示左右控制时添加 class="tabsPageHeaderMargin" -->
          <ul class="navTab-tab">
            <li tabid="main" class="main"><a href="javascript:;"><span><span
										class="home_icon">我的主页</span> </span> </a></li>
          </ul>
        </div>
        <div class="tabsLeft">left</div>
        <!-- 禁用只需要添加一个样式 class="tabsLeft tabsLeftDisabled" -->
        <div class="tabsRight">right</div>
        <!-- 禁用只需要添加一个样式 class="tabsRight tabsRightDisabled" -->
        <div class="tabsMore">more</div>
      </div>
      <ul class="tabsMoreList">
        <li><a href="javascript:;">我的主页</a></li>
      </ul>
      <div class="navTab-panel tabsPageContent layoutBox">
        <div class="page unitBox">
          <div class="accountInfo">
            <div class="middleNav">
              <ul>
                <li><a
										href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.accusedPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0"
										target="navTab" rel="TaskManageLists"><span class="ico01">正在进行的任务</span><span
											class="numberMiddle">${count}</span> </a></a> </li>
                <li><a
										href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.sentPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0"
										target="navTab" rel="TaskManageLists" target="navTab"
										rel="TaskManageLists"><span class="ico02">等待接受的任务</span><span
											class="numberMiddle">${sum}</span> </a></a> </li>
                <li><a href="investment/Punch" target="ajaxTodo"><span class="ico03">上班签到</span> </a> </li>
                <li><a href="investment/Punchnext"  target="ajaxTodo"><span class="ico04">下班签到</span> </a> </li>
              </ul>
            </div>
            <div class="zyAvatar"> <img src="dwz/themes/default/images/zyAvatar.png" /> </div>
            <p> <span>用户：${user.realName}</span> </p>
          </div>
          <div class="zyLine"></div>
          <!--左侧开始-->
          <div class="pageFormContent zyOA_Index" layouth="80" style="margin-right:300px;">
            <div class="tabs zyOA_IndexTab" currentIndex="0" eventType="click">
              <div class="tabsHeader">
                <div class="tabsHeaderContent">
                  <ul>
                    <li><a class="j-ajax" href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.accusedPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0&tab=1"><span>指派我的任务</span> </a> </li>
                    <li><a class="j-ajax" href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.sentPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=0&tab=1"><span>我指派的任务</span> </a> </li>
                    <li><a class="j-ajax" href="projectmanagement/TaskManageLists?b_T_Ufp_TaskManager.accusedPeople=${user.realName}&b_T_Ufp_TaskManager.taskSpeed=1&tab=1"><span>已完成的任务</span> </a> </li>
                  </ul>
                </div>
              </div>
              <div class="tabsContent" style="padding:0;"> 
				<div></div>
                <div></div>
                <div></div>
              </div>
              <div class="tabsFooter">
                <div class="tabsFooterContent"></div>
              </div>
            </div>
          </div>
          <!--左侧结束--> 
          <!--微博开始-->
          <div class="weibo">
            <iframe width="100%" height="527" class="share_self" frameborder="0" scrolling="no" src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=527&fansRow=1&ptype=0&speed=0&skin=2&isTitle=0&noborder=0&isWeibo=1&isFans=0&uid=2840733533&verifier=b75ffbe4&colors=d6f3f7,f1f1f1,595959,2b6893,ececec&dpc=1"></iframe>
          </div>
          <!--微博结束--> 
        </div>
      </div>
    </div>
  </div>
</div>
<div id="footer">Copyright © 2012 www.maszy.cn inc.All right reserved.</div>
<script type="text/javascript">

</script>
</body>
</html>
